using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
using Microsoft.Xna.Framework.Content;


namespace TimeWar
{
    class Companion
    {

        private Texture2D fullPic;
        private Texture2D iconPic;
        private string name;
        private string pathToIcon;
        private string pathToFull;
        private Rectangle rectangularPosition;
        private Vector2 position;
        private Rectangle originalIconRectangle;
        private Rectangle originalFullRectangle;


        public Companion(string companionName, string myPathToIcon, string myPathToFull)
        {
            name = companionName;
            pathToIcon = myPathToIcon;
            pathToFull = myPathToFull;
            setTextures();

        }

        private void setTextures()
        {
            iconPic = TimeWarGame.ContentManager.Load<Texture2D>(pathToIcon);
            fullPic = TimeWarGame.ContentManager.Load<Texture2D>(pathToFull);
            
            originalIconRectangle = new Rectangle(0, 0, iconPic.Width, iconPic.Height);
            originalFullRectangle = new Rectangle(0, 0, fullPic.Width, fullPic.Height);
        }

        public Vector2 Position
        {
            get
            {
                return position;
            }
            set
            {
                position = value;
            }
        }

        public Rectangle OriginalIcon
        {
            get
            {
                return originalIconRectangle;
            }
        }

        public Rectangle OriginalFull
        {
            get
            {
                return originalFullRectangle;
            }
        }

        public Rectangle RectanglarPosition
        {
            get
            {
                return rectangularPosition;
            }
            set
            {
                rectangularPosition = value;
            }
        }


        public string Name
        {
            get
            {
                return name;
            }
        }

        public Texture2D Icon
        {
            get
            {
                return iconPic;
            }
        }

        public Texture2D FullGraphic
        {
            get
            {
                return fullPic;
            }
        }


    }
}
